package com.bjb.vr.remote.controller;

import com.bjb.vr.common.ao.ClientRequestAo;
import com.bjb.vr.common.result.BaseResult;
import com.bjb.vr.common.vo.ResClientCloudVo;
import com.bjb.vr.remote.service.HttpOperationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @version 1.0.0
 * @description:
 * @author: caihaibo
 * @createDate: 2022/12/26
 */
@RestController
@RequestMapping("/api/remote/v1")
@Slf4j
public class RemoteResCloudController {


	@Resource
	private HttpOperationService httpOperationService;

	/**
	 * 获取眼镜云端课程资源列表接口
	 * @param clientRequestAo
	 * @return
	 */
	@RequestMapping(value = "/queryGlassResourcesList", method = {RequestMethod.GET,RequestMethod.POST})
	public BaseResult<List<ResClientCloudVo>> queryGlassResourcesList(@RequestHeader(value = "Authorization") String authorization, @RequestBody ClientRequestAo clientRequestAo) {
		return httpOperationService.queryGlassResourcesList(authorization,clientRequestAo);
	}
}
